import { Column } from "typeorm";
import BaseEntity from "./base.entity";

export default class WechatUser extends BaseEntity {
    @Column({
        type: 'varchar',
        length: 64,
    })
    openid: string;
    @Column({
        type: 'varchar',
        length: 64,
    })
    unionid: string;
    @Column({
        type: 'varchar',
        length: 64,
        name: 'session_key',
    })
    sessionKey: string;
    @Column({
        type: 'timestamp',
        name: 'expire_at'
    })
    expireAt: Date;
}